package com.rent.weixin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 微信消息配置
 * </p>
 *
 * @author zn
 * @since 2025-03-05
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("wx_message_template")
@ApiModel(value = "WxMessageTemplate对象", description = "微信消息配置")
public class WxMessageTemplate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("经销商名称")
    @TableField("appid")
    private String appid;

    @ApiModelProperty("消息类型")
    @TableField("message_type")
    private Integer messageType;

    @ApiModelProperty("微信消息模版")
    @TableField("wx_template")
    private String wxTemplate;

    @ApiModelProperty("微信模板示例")
    @TableField("wx_template_example")
    private String wxTemplateExample;

    @ApiModelProperty("发送延时时间/秒")
    @TableField("send_delayed_time")
    private Integer sendDelayedTime;

    @ApiModelProperty("是否发送短信")
    @TableField("is_send_msg")
    private Integer isSendMsg;

    @TableField("note")
    private String note;

    @ApiModelProperty("短信模版")
    @TableField("msg_template")
    private String msgTemplate;

    @ApiModelProperty("短信模板示例")
    @TableField("msg_template_example")
    private String msgTemplateExample;

    @ApiModelProperty("是否启用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("公司ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty("公众号appid")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    @TableField("remark")
    private String remark;
}
